package com.yang.project.base.io;

import org.junit.Test;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class ReaderTest {
    @Test
    public void test() throws IOException {
        Reader reader = new FileReader("E:\\javacode\\baguwen\\src\\main\\resources\\hello.txt");
        int buff;
        while ((buff = reader.read()) != -1) {
            System.out.print((char)buff);
        }
    }
}
